@extends('admin::layouts.master')
@section('content')
    <div class="card" id="app">
        <div class="card-header">模板管理</div>
        <div class="tab-container">
            {{--<ul role="tablist" class="nav nav-tabs">--}}
                {{--<li class="nav-item"><a href="/admin/module" class="nav-link active">模板列表</a></li>--}}
                {{--<li class="nav-item"><a href="" class="nav-link active">模板列表</a></li>--}}
                {{--<li class="nav-item"><a href="" class="nav-link active">添加模板</a></li>--}}
{{--                <li class="nav-item"><a href="{{route('fangfa')}}" class="nav-link">更新模板缓存</a></li>--}}
            {{--</ul>--}}
            <div class="card card-contrast card-border-color-success">

                @foreach($cc as $v)
                <div style="float: left" class="card-body col-md-4">
                    <img style="height: 304px;width: auto" src="{{$v['preview']}}" alt="">
                    @if(\HDModule::config('admin.config.template') == $v['name'])
                    <a style="display: block" href="#" class="btn btn-success btn-block">默认模板</a>
                    @else
                    <a style="display: block" href="{{route('config',$v['name'])}}" class="btn btn-dark btn-block">将 {{$v['title']}} 设为默认模板</a>
                    @endif
                </div>

                    @endforeach
            </div>

        </div>
    </div>
    <div class="float-right">
        {{--{!!  $data->links() !!}--}}
    </div>
@endsection

